# 基础柱状图

from pyecharts.charts import Bar
from pyecharts.options import *

bar=Bar()

bar.add_xaxis(["中国","美国","俄罗斯","日本"])
bar.add_yaxis("GDP",[30,20,10,5],label_opts=LabelOpts(position="right"))

bar.reversal_axis()

bar.render("../output/basic_bar.html")